const api = {
  papers: {
    get: () => useFetchData().get<undefined, PageType<Paper[]>>("/paper"),
    getById: (id: string) =>
      useFetchData().get<{ id: string }, Paper>(`/paper/${id}`),
    add: (data: Paper) => useFetchData().post<Paper>("/paper", data),
  },
};
export default api;
